/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author gazzopardi
 */
public class Dep implements Comparable<Dep> {

    private String num;
    private Collection<Medecin> lesMeds = new TreeSet<Medecin>();

    public Dep(String num, Collection<Medecin> m) {
        this.num = num;
        this.lesMeds = m;
    }

    public Collection getLesMeds() {
        return lesMeds;
    }

    public String getNum() {
        return num;
    }

    @Override
    public int compareTo(Dep d) {
        return num.compareTo(d.num);
    }
}